package com.wr.api.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @author MyPC
 */
@Data
public class SysUserBo {

    private Long userId;

    private Long deptId;

    private String uk;

    private String pk;

    private String spaceUrl;

    private String mobile;

    private String mailbox;

    private String nickName;

    private String avatar;

    private String sex;

    private String registerType;

    private String addr;

    private String status;

    private String remark;

    private boolean admin;

    private String loginIp;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private Date loginDate;

    /**
     * 部门对象
     */
    private SysDeptBo sysDeptBo;

    /**
     * 角色对象
     */
    private List<SysRoleBo> sysRoleBos = new ArrayList<>();

    /**
     * 角色组
     */
    private Long[] roleIds;

    /**
     * 岗位组
     */
    private Long[] postIds;


    private String createBy;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private Date createTime;
}